/*
 * @features: 功能
 * @description: 说明
 * @Date: 2021-09-13 23:04:42
 * @Author: judu233(769471424@qq.com)
 * @LastEditTime: 2021-10-13 20:32:32
 * @LastEditors: judu233
 */

import c3d from "../../cc";
import ExtendsLoad from "../CCExtends";

declare module "cc" {
    export interface Node {
        /**设置自定义数据 */
        setUserData<T>(userDaa: T);
        /**获取自定义数据 */
        getUserData<T>(): T;
    }
    export interface CCObject {
        // CCObjecttest(): void;
    }
}

class NodeExtends {
    _userData: any;
    setUserData(userDaa: any) { this._userData = userDaa; }
    getUserData() { return this._userData; }
}

ExtendsLoad.load(Node.prototype, NodeExtends, true);

// c3d.CCObject.prototype.CCObjecttest = () => { }
